import { RouteRecordRaw } from "vue-router";

/*
 * @Description: 路由文件
 * @Author: wlj
 * @Date: 2022-12-26 17:07:39
 * @LastEditors: wlj
 * @LastEditTime: 2023-01-03 18:47:45
 * @FilePath: \my-vite-app\src\router\routes.ts
 */
export const commonRoutes: Array<RouteRecordRaw> = [
  {
    path: "/:path(.*)",
    name: "404",
    component: () => import("../components/common/404.vue"),
  },
];
export const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "Home",
    component: () => import("../views/Home.vue"),
  },
  {
    path: "/child",
    name: "child",
    component: () => import("../views/child.vue"),
  },
];
